home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
lcppb.zip
/
LCPPANS.ZIP
/
RAIN2.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-08
|
504b
|
23 lines
// rain2.cpp -- Use string to read a floating point value
#include <iostream.h>
#include <stdlib.h>
main()
{
float rainFall;
char response[128];
cout << "Enter rain fall in inches: ";
cin >> response;
rainFall = atof(response);
cout << "You entered : " << rainFall;
}
// Copyright (c) 1990 by Tom Swan. All rights reserved
// Revision 1.00 Date: 10/23/1990 Time: 03:56 pm
// Revision 1.01 Date: 07/08/1991 Time: 05:41 pm
// Converted for Borland C++ 2.0